﻿Imports TepcelDominio
Imports TepcelDAL
Public Class UbigeoBL
    Private UbigeoDAL As UbigeoDAL
    Public Sub New()
        UbigeoDAL = New UbigeoDAL
    End Sub
    Public Function NuevoUbigeo(ByVal Ubigeo As Ubigeo) As String
        Return UbigeoDAL.NuevoUbigeo(Ubigeo)
    End Function

    Public Function GetByIdFromUbigeo(ByVal codigoUbigeo As String)
        Return UbigeoDAL.GetByIdFromUbigeo(codigoUbigeo)
    End Function
    Public Function GetAllFromUbigeo(ByVal tipoUbigeo As Integer) As List(Of Ubigeo)
        Return UbigeoDAL.GetAllFromUbigeo(tipoUbigeo)
    End Function

    Public Function SearchFromUbigeo(ByVal texto As String, ByVal tipoUbigeo As Integer) As List(Of Ubigeo)
        Return UbigeoDAL.SearchFromUbigeo(texto, tipoUbigeo)
    End Function

    Public Function DeleteUbigeo(ByVal codigoUbigeo As String) As Boolean
        Return UbigeoDAL.DeleteUbigeo(codigoUbigeo)
    End Function
End Class
